package com.hx.miniblog.pojo.ro;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @author wenhao hu
 * @title: LoginRo
 * @projectName miniBlog
 * @description: TODO
 * @date 2021/12/2915:00
 */
@Data
public class LoginRo {
    @ApiModelProperty(name = "userName",value = "用户名",dataType = "String")
    private String userName;
    @ApiModelProperty(name = "password",value = "密码",dataType = "String")
    private String password;

     /**
      * @description: 参数校验
      * @author wenhao hu
      * @date 2021/12/29 15:10
     */
    public Boolean validate(){
        return (StringUtils.isNotBlank(this.userName)&&StringUtils.isNotBlank(this.password));
    }
}
